import {request} from "../request";

export function getOfficePagInfo({empId,deptId,pageNum,pageSize}){
    return request({
        url: '/process/gs-py/getAll',
        method: 'get',
        params:{
            empId,
            deptId,
            pageNum,
            pageSize
        }
    })
}

export  function selectEmp(){
    return request({
        url:'/per/emp/options',
        method:'get',
        params:{
        }
    })
}
export function selectDept(){
    return request({
        url:'/sys/dept/selectDept',
        method:'get',
        params:{

        }
    })
}


export function postAdd(GsRevicePy){
    return request({
        url:'/gsPy/add',
        method:'post',
        data: GsRevicePy
    })

}
export function goodsAll(){
    return request({
        url:'/adm/gs/goodsAll',
        method:'get'
    })
}
//查询申请记录
export function createGsPy(gsPy) {
    return request({
        url:'/process/gs-py/create',
        method:'post',
        data: gsPy
    })
}
//修改申请信息状态
export  function  updateStatuswupi(gsPy){
    return request({
        url:'/process/gs-py/update',
        method:'put',
        data:gsPy
    })
}